package com.github.maojx0630.translate.translate;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.List;

/**
 * @author 毛家兴
 * @since 2024-06-19 12:00
 */
public interface TranslateHandle<A extends Annotation> {

    /**
     * 获取翻译结果
     */
    Object getTranslateValue(A ann, String value, Field field);

    /**
     *
     */
    List<String> getTranslateField(A ann, String value, Field field);

    default Integer getSort() {
        return 0;
    }

    Class<A> getAnnClass();
}
